/*
 * @Author: your name
 * @Date: 2021-11-13 15:51:04
 * @LastEditTime: 2021-11-16 08:32:36
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\api\classify\index.js
 */
import request from "../../utils/request";
//获取标签数据
function getTagList() {
    return request({
        url: "/api/tag",
        method: "get",
    });
}
//获取标签数据个数
function getTagTotal() {
    return request({
        url: "/api/tag/num",
        method: "get",
    });
}
//添加标签
function addTagList(data) {
    return request({
        url: "/api/tag",
        method: "post",
        data,
    });
}
//删除标签
function delTagList(data) {
    return request({
        url: "/api/tag",
        method: "delete",
        data,
    });
}
//编辑标签
function editTagList(data) {
    return request({
        url: "/api/tag",
        method: "put",
        data,
    });
}
export default {
    getTagList,
    getTagTotal,
    addTagList,
    delTagList,
    editTagList,
};